<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%
	pageContext.setAttribute("APP_PATH",request.getContextPath());
%>

        <title> 跳转 </title>  
    <link href="${APP_PATH }/static/timer" rel="stylesheet">
    </head>  
<body  style ="width:100%; height:668px; relative; background-size:cover;" background=" ${APP_PATH }/static/timer/timer.jpg"> 
        <div  style="position: absolute; left:30%; :200px;width:40%; text-align:center;
        background-color: #ccffbb">  
            <!-- BEGIN MAIN CONTENT -->  
            <section class="error-wrapper">  
                <img style="width: 100px; height: 30px; " src="${APP_PATH }/static/timer/title.jpg">  
                <h3>提示内容</h3>  
                <p class="page-404">            
                    <span>登录成功正在自动跳转中!</span>  
                    <a href="${APP_PATH}/homePageLoginLink">手动跳转</a> 
                    <span>等待时间：</span>  
                    <span class="second"style="font-size:26px;font-weight:bold; color:#28004D">3</span>  
                </p>  
            </section>  
            <!-- END MAIN CONTENT -->  
        </div>   
    </body>  
    <!-- BEGIN JS -->  
     <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="${APP_PATH }/static/js/jquery-3.2.1.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="${APP_PATH }/static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
  
 <script type="text/javascript">  
    $(function() {  
        var wait = $(".second").html();  
        timeOut();  
        /**  
         * 实现倒计时  
         */  
        function timeOut() {  
            if(wait != 0) {  
                setTimeout(function() {  
                    $('.second').text(--wait);
                    timeOut();  
                }, 1000);  
            }else{
            	$(location).attr("href","${APP_PATH}/homePageLoginLink");
            }  
        }  
    });  
</script>  
</html>